.index {
  &::after {
    background-color: rgba(72, 119, 230, 0.1);
    .positon-a();
  }
  .menu-item-icon {
    padding-left: 18px;
    position: relative;
    z-index: 1;
  }
}
.positon-a () {
  position: absolute;
  width: calc(100% - 32px);
  height: 100%;
  left: 16px;
  top: 0;
  border-radius: 26px;
  content: ' ';
}
.menu-item-icon {
  padding-left: 16px;
  padding-right: 2px;
  font-size: 16px !important;
}

:global {
  #root {
    .ant-menu-vertical .ant-menu-item:not(:last-child) {
      margin: 5px 0;
    }
    .ant-menu-root > .ant-menu-item {
      &:first-child {
        margin-bottom: 10px;
      }
    }

    .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
      a {
        color: #fff;
        &::after {
          .positon-a();
          background-color: #4877e6;
        }
      }
      :local {
        .index {
          &::after {
            background-color: #4877e6;
          }
        }
      }
    }
    .entrance-guard-collapsed {
      :local {
        .item {
          line-height: 52px;
          text-align: center;
          display: block;
          width: 100%;
          height: 100%;
        }
        .menu-item-icon {
          padding: 0;
          position: relative;
          z-index: 10;
        }
      }
    }
  }
}
